/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package de.blitzcoder.collide.util;

/**
 *
 * @author blitzcoder
 */
public class StringWorker {
    
    // Returns from pos to line end
    public static String cutLine(String str,int pos) {
        char[] c = str.toCharArray();
        int i;
        for (i=pos;i<c.length;i++)
            if (c[i] == 10)
                break;
        return str.substring(pos,i);
    }

    private String insertString(String str,String insert,int pos) {
        return str.substring(0,pos)+insert+str.substring(pos+insert.length());
    }
    
    
}
